package again;

public class StartThread implements Runnable{
    public static volatile   boolean  isRunning = true;

    public static  int a = 10;

    public static volatile int count =0;

    @Override
    public void run() {
        while (isRunning){
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("a=="+a);
        }
        System.out.println("已经停止！！");
    }
}
